from django.urls import path
from .views import (
    UserRegistrationView, UserLoginView, UserProfileView,
    PasswordResetView, PasswordResetConfirmView,
    LoginLogListView, logout_view
)

urlpatterns = [
    path('register/', UserRegistrationView.as_view(), name='user-register'),
    path('login/', UserLoginView.as_view(), name='user-login'),
    path('logout/', logout_view, name='user-logout'),
    path('profile/', UserProfileView.as_view(), name='user-profile'),
    path('password-reset/', PasswordResetView.as_view(), name='password-reset'),
    path('password-reset-confirm/<str:uidb64>/<str:token>/', 
         PasswordResetConfirmView.as_view(), name='password-reset-confirm'),
    path('login-logs/', LoginLogListView.as_view(), name='login-logs'),
]
